//
//  FnRewardVideoAd.h
//  flutter_fn_sdk
//
//  Created by xiaomin huang on 2022/7/4.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface FnRewardVideoAd : NSObject

//错误
@property (copy, nonatomic) void(^onError)(NSError *error);
//关闭
@property (copy, nonatomic) void(^onClosed)(void);
//展示
@property (copy, nonatomic) void(^onShow)(void);
//点击
@property (copy, nonatomic) void(^onClicked)(void);
//加载成功
@property (copy, nonatomic) void(^onLoad)(void);
//达成奖励条件
@property (copy, nonatomic) void(^onReward)(NSString *orderId);

/// 加载激励视频
/// @param appId appid
/// @param adsId 广告位id
/// @param release 是否生产环境
/// @param userId 用户id
/// @param info 额外信息
+ (instancetype)loadAdWithAppId:(NSString *)appId adsId:(NSString *)adsId isRelease:(BOOL)release userId:(NSString *)userId
                      extraInfo:(NSString *)info;
@end

NS_ASSUME_NONNULL_END
